package com.swpu.service_drink.service;

import com.swpu.service_drink.entity.DrinkRecord;
import com.baomidou.mybatisplus.extension.service.IService;
import com.swpu.service_drink.entity.vo.DrinkCountChartVo;
import com.swpu.service_drink.entity.vo.DrinkRecordChartDataVo;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author chaichai
 * @since 2024-02-28
 */
public interface DrinkRecordService extends IService<DrinkRecord> {

    void addDrinkRecord(String openid, DrinkRecord drinkRecord);

    List<DrinkRecord> getDrinkRecordDataByDate(String openid, Date date);

    void deleteDrinkRecordData(String openid, String recordId);

    List<DrinkRecordChartDataVo> getDrinkDataToChart(String openid,  Integer dateCount);

    List<DrinkCountChartVo> getDrinkCountToChart(String openid,  Integer dateCount);

    Map getDrinkVolumeByDate(String openid, Date queryDate);

    DrinkRecord getLastedDrinkRecordByDate(String openid,Date queryDate);
}
